package com.permissions.dispatcher.processor.exception;

import com.permissions.dispatcher.processor.util.Extensions;

import javax.lang.model.element.ExecutableElement;

/**
 * 无参异常
 */
public class NoParametersAllowedException extends RuntimeException {
    /**
     * 无参异常
     */
    public NoParametersAllowedException(ExecutableElement ecutableElement) {
        super("Method '" + Extensions.simpleString(ecutableElement) + "()' must not have any parameters");
    }
}
